package com.gdyx.app.web.dao;

import com.gdyx.app.web.model.MpsOrgUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MpsOrgUserDao extends BaseDao{
    List<MpsOrgUser> findMpsOrgUsers(Map<String, Object> map);
    List<MpsOrgUser> findMpsOrgUsersByUid(String id);
    List<MpsOrgUser> findMpsOrgUsersByOid(String id);
    void deleteByUid(String id);
    MpsOrgUser findMpsOrgUsersById(String id);
    void deleteByOidAndUid(@Param("orgId") String orgId,@Param("userId") String userId);

    MpsOrgUser findMpsOrgUsersByIdAndOrgId(@Param("orgId") String orgId,@Param("userId") String userId);
}
